package com.tmptSource.controller.action;

import com.opensymphony.xwork2.ActionSupport;
import com.tmpt.dto.Result;
import com.tmpt.utils.report.ExcelUtils;
import com.tmptSource.dto.OwRegisterDataDto;
import com.tmptSource.dto.OwTaskDto;
import com.tmptSource.dto.PageDto;
import com.tmptSource.service.intf.IOwRegisterDataService;
import com.tmpt.utils.*;
import lombok.Getter;
import lombok.Setter;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.math.BigDecimal;
import java.util.*;

@Getter
@Setter
@Controller(value="owRegisterDataAction")
@Scope("prototype")
public class OwRegisterDataAction extends ActionSupport {
	private Logger log = Logger.getLogger(this.getClass());


	//------------
	//与页面交互的分页和排序
	//--------------
	private int page=0;
	private int rows=0;
	private String sortColumn;
	private String sortOrder;

	//------------
	//与页面交互的业务数据
	//--------------
    private String id;
    private String owUseType;
    private String name;
    private String cmpnyLegalMan;
    private String cmpnyLegalPhone;
    private String cmpnyPrincipalMan;
    private String cmpnyPrincipalPhone;
    private String cmpnyRegisterName;
    private String cmpnyShopName;
    private String cmpnyBusinessScope;
    private String owCmpnyBusinessProperty;
    private String owCmpnyBusinessMode;
    private String owCmpnyBusinessArea;
    private String owCmpnyHasLicense;
    private String owCmpnyHasContract;
    private String registerDataNumber;
    private String owRegisterType;
    private String owBuildingType;
    private String owUseCode;
    private String baseCommiteeId;
    private String deleteflag;
    private String baseRoadId;
    private String createdate;
	private String createdate_Start;
	private String createdate_End;
    private String posHouseNumber;
    private String createman;
    private String posDesc;
    private String modifydate;
	private String modifydate_Start;
	private String modifydate_End;
    private String posLng;
    private String modifyman;
    private String posLat;
    private String createmanId;
    private String remark1;
    private String modifymanId;
    private String ownerName;
    private String companyId;
    private String ownerPhone;
    private String userName;
    private String userPhone;
    private String remark2;
	private String a2userId;

	//返回结果
	private String result;
	//返回结果
	private List<Map<String,Object>> jsonArrayResult = new ArrayList<Map<String,Object>>();


	@Resource
	private IOwRegisterDataService owRegisterDataService;


	/**
	* 分页查询列表
	* @return
	*/
	public String queryListBySearch(){
		try {

			HttpServletResponse response = ServletActionContext.getResponse();
			HttpServletRequest request = WebUtils.getRequest();
			HttpSession session = request.getSession();

			//查询参数
			//分页/排序查询条件
			PageDto pageDto = new PageDto();
			//默认主键desc
			if(StringUtils.isNull(sortColumn)){
				sortColumn = "id";
				sortOrder = "desc";
			}
			pageDto.setPageCurrent(page-1);
			pageDto.setPageSize(rows);
			pageDto.setSortColumn(sortColumn);
			pageDto.setSortOrder(sortOrder);

			//查询条件
			OwRegisterDataDto owRegisterDataParam = new OwRegisterDataDto();
			owRegisterDataParam.setOwUseType(this.owUseType);
			owRegisterDataParam.setRegisterDataNumber(this.registerDataNumber);
			owRegisterDataParam.setOwRegisterType(this.owRegisterType);
			owRegisterDataParam.setOwBuildingType(this.owBuildingType);
			owRegisterDataParam.setOwUseCode(this.owUseCode);
			owRegisterDataParam.setBaseCommiteeId(this.baseCommiteeId);
			owRegisterDataParam.setPosHouseNumber(this.posHouseNumber);
			owRegisterDataParam.setPosDesc(this.posDesc != null ? "%" + this.posDesc + "%" : null);
			owRegisterDataParam.setPosLng(this.posLng);
			owRegisterDataParam.setPosLat(this.posLat);
			owRegisterDataParam.setCreatemanId(this.a2userId);
			owRegisterDataParam.setCreatedate_Start(this.createdate_Start);
			owRegisterDataParam.setCreatedate_End(this.createdate_End);

			//data limit control
			String requireUrl = request.getRequestURI().toString();
			String queryString = request.getQueryString();
			String contextPath = request.getContextPath();
			//data limit parameters
			String userId = WebUtils.getUserId();
			Map<String,Object> paramMap = new HashMap<String, Object>();
			paramMap.put("userId", userId);
			paramMap.put("contextPath", contextPath);
			paramMap.put("requireUrl", requireUrl);
			paramMap.put("queryString", queryString);

			//调用远程服务
			Result<OwRegisterDataDto> resultObj =  owRegisterDataService.pagination(owRegisterDataParam,pageDto,paramMap);
			if(!resultObj.isSuccess()){
				this.result = "error:"+resultObj.getContent();
				JsonPaginationUtils.responseWriter(response, this.result);
				return "jsonResult";
			}
			Map<String,Object> resultMap = resultObj.getResultMap();

			//分页记录
			List<OwRegisterDataDto> list = (List<OwRegisterDataDto>)resultMap.get("rows");
			JSONArray jsonArrayRows = JSONArray.fromObject(list);

			//分页总记录数
			int total = 0;
			if(resultMap.get("total") != null){
				total = Integer.parseInt(resultMap.get("total").toString());
			}

			//分页合计（select '合计' as c1, sum(balance) as c2 ....）
			JSONArray jsonArrayFooter = null;
			if(resultMap.get("footer")!=null){
				jsonArrayFooter = JSONArray.fromObject(resultMap.get("footer"));
			}

			JSONObject json = new JSONObject();
			json.put("total", total);
			json.put("rows", jsonArrayRows);
			//json.put("reportSqlString",reportSqlString);
			if(jsonArrayFooter!=null){
				json.put("footer", jsonArrayFooter);
			}

			this.result = json.toString();
			JsonPaginationUtils.responseWriter(response, this.result);

		} catch (Exception e) {
			e.printStackTrace();
		}
		return "jsonResult";
	}

	/**
	 * 分页查询列表(没有数据边界)
	 * @return
	 */
	public String download(){
		try {
			page=1;
			rows=1000000;

			HttpServletResponse response = ServletActionContext.getResponse();
			HttpServletRequest request = WebUtils.getRequest();
			HttpSession session = request.getSession();

			//查询参数
			//分页/排序查询条件
			PageDto pageDto = new PageDto();
			//默认主键desc
			if(StringUtils.isNull(sortColumn)){
				sortColumn = "id";
				sortOrder = "desc";
			}
			pageDto.setPageCurrent(page-1);
			pageDto.setPageSize(rows);
			pageDto.setSortColumn(sortColumn);
			pageDto.setSortOrder(sortOrder);

			//查询条件
			OwRegisterDataDto owRegisterDataParam = new OwRegisterDataDto();
			owRegisterDataParam.setOwUseType(this.owUseType);
			owRegisterDataParam.setRegisterDataNumber(this.registerDataNumber);
			owRegisterDataParam.setOwRegisterType(this.owRegisterType);
			owRegisterDataParam.setOwBuildingType(this.owBuildingType);
			owRegisterDataParam.setOwUseCode(this.owUseCode);
			owRegisterDataParam.setBaseCommiteeId(this.baseCommiteeId);
			owRegisterDataParam.setPosHouseNumber(this.posHouseNumber);
			owRegisterDataParam.setPosDesc(this.posDesc != null ? "%" + this.posDesc + "%" : null);
			owRegisterDataParam.setPosLng(this.posLng);
			owRegisterDataParam.setPosLat(this.posLat);
			owRegisterDataParam.setCreatemanId(this.a2userId);
			owRegisterDataParam.setCreatedate_Start(this.createdate_Start);
			owRegisterDataParam.setCreatedate_End(this.createdate_End);

			//data limit control
			String requireUrl = request.getRequestURI().toString();
			String queryString = request.getQueryString();
			String contextPath = request.getContextPath();
			//data limit parameters
			String userId = WebUtils.getUserId();
			Map<String,Object> paramMap = new HashMap<String, Object>();
			paramMap.put("userId", userId);
			paramMap.put("contextPath", contextPath);
			paramMap.put("requireUrl", requireUrl);
			paramMap.put("queryString", queryString);

			//调用远程服务
			Result<OwRegisterDataDto> resultObj =  owRegisterDataService.pagination(owRegisterDataParam,pageDto,paramMap);
			if(!resultObj.isSuccess()){
				this.result = "error:"+resultObj.getContent();
				JsonPaginationUtils.responseWriter(response, this.result);
				return "jsonResult";
			}
			Map<String,Object> resultMap = resultObj.getResultMap();

			//分页记录
			List<OwRegisterDataDto> list = (List<OwRegisterDataDto>)resultMap.get("rows");
			JSONArray jsonArrayRows = JSONArray.fromObject(list);

			//分页总记录数
			int total = 0;
			if(resultMap.get("total") != null){
				total = Integer.parseInt(resultMap.get("total").toString());
			}

			//分页合计（select '合计' as c1, sum(balance) as c2 ....）
			JSONArray jsonArrayFooter = null;
			List<OwRegisterDataDto> listFooter = null;
			if(resultMap.get("footer")!=null){
				listFooter = (List<OwRegisterDataDto>)resultMap.get("footer");
				jsonArrayFooter = JSONArray.fromObject(listFooter);
			}

			JSONObject json = new JSONObject();
			json.put("total", total);
			json.put("rows", jsonArrayRows);
			//json.put("reportSqlString",reportSqlString);
			if(jsonArrayFooter!=null){
				json.put("footer", jsonArrayFooter);
			}

			//this.result = json.toString();
			//JsonPaginationUtils.responseWriter(response, this.result);

			//报表
			List<List<String>> rowList = new ArrayList<List<String>>();
			List<String> col = null;

			col = new ArrayList<String>();
			col.add("使用类型");
			col.add("法人");
			col.add("法人联系方式");
			col.add("负责人");
			col.add("负责人联系方式");
			col.add("注册名称");
			col.add("店铺名称");
			col.add("经营范围");
			col.add("经营性质");
			col.add("经营方式");
			col.add("经营面积");
			col.add("是否有证照");
			col.add("是否门责签约");
			col.add("登记数据编号");
			col.add("登记类型");
			col.add("建筑类型");

			col.add("使用状况");
			col.add("所属居委");
			col.add("地址");
			col.add("备注");
			col.add("房主姓名");
			col.add("房主联系方式");
			col.add("使用者姓名");
			col.add("使用者联系方式");


			col.add("创建人");
			col.add("创建日期");
			rowList.add(col);

			for(OwRegisterDataDto itemDto : list){
				col = new ArrayList<String>();
				col.add(itemDto.getOwUseType_Str());
				col.add(itemDto.getCmpnyLegalMan());
				col.add(itemDto.getCmpnyLegalPhone());
				col.add(itemDto.getCmpnyPrincipalMan());
				col.add(itemDto.getCmpnyPrincipalPhone());
				col.add(itemDto.getCmpnyRegisterName());
				col.add(itemDto.getCmpnyShopName());
				col.add(itemDto.getCmpnyBusinessScope());
				col.add(itemDto.getOwCmpnyBusinessProperty_Str());
				col.add(itemDto.getOwCmpnyBusinessMode_Str());
				col.add(itemDto.getOwCmpnyBusinessArea());
				col.add(itemDto.getOwCmpnyHasLicense_Str());
				col.add(itemDto.getOwCmpnyHasContract_Str());
				col.add(itemDto.getRegisterDataNumber());
				col.add(itemDto.getOwRegisterType_Str());
				col.add(itemDto.getOwBuildingType_Str());
				col.add(itemDto.getOwUseCode_Str());
				col.add(itemDto.getBaseCommiteeName());
				col.add(itemDto.getPosDesc());
				col.add(itemDto.getRemark1());
				col.add(itemDto.getOwnerName());
				col.add(itemDto.getOwnerPhone());
				col.add(itemDto.getUserName());
				col.add(itemDto.getUserPhone());
				col.add(itemDto.getCreateman());
				col.add(itemDto.getCreatedate());
				rowList.add(col);
			}

			ExcelUtils.downloadReport("数据采集", rowList, response);

		} catch (Exception e) {
			e.printStackTrace();
		}
		return "jsonResult";
	}



	/**
	* 伪删除数据
	* @return
	*/
	public String removeData(){
		Result resultObj = new Result();
		try {
			HttpServletResponse response = ServletActionContext.getResponse();
			HttpServletRequest request = WebUtils.getRequest();
			HttpSession session = request.getSession();

			//参数
			String adminMan = WebUtils.getUsername();//加入管理员

			//调用远程服务
			resultObj =  owRegisterDataService.deleteById(Long.valueOf(id),adminMan);
			if(!resultObj.isSuccess()){
				this.result = "error:"+resultObj.getContent();
				JsonPaginationUtils.responseWriter(response, this.result);
				return "jsonResult";
			}
			this.jsonArrayResult.add(resultObj.getResultMap());

		} catch (Exception e) {
			e.printStackTrace();
			resultObj.fault("error:系统出错:"+e.getLocalizedMessage());
			this.jsonArrayResult.add(resultObj.getResultMap());
		}

		return "jsonArray";
	}


	/**
	* 编辑数据
	* @return
	*/
	public String editData(){
		Result<OwRegisterDataDto> resultObj = new Result();
		try {
			HttpServletResponse response = ServletActionContext.getResponse();
			HttpServletRequest request = WebUtils.getRequest();
			HttpSession session = request.getSession();

			//参数
			OwRegisterDataDto owRegisterDataDto = new OwRegisterDataDto();
			String adminMan = WebUtils.getUsername();//加入管理员
            String userId = WebUtils.getUserId();
			owRegisterDataDto.setModifymanId(userId);
			owRegisterDataDto.setModifyman(adminMan);
			owRegisterDataDto.setCompanyId(WebUtils.getCompanyId());
			owRegisterDataDto.setId(this.id);
			//编辑数据
			owRegisterDataDto.setOwUseType(this.owUseType);
			owRegisterDataDto.setName(this.name);
			owRegisterDataDto.setCmpnyLegalMan(this.cmpnyLegalMan);
			owRegisterDataDto.setCmpnyLegalPhone(this.cmpnyLegalPhone);
			owRegisterDataDto.setCmpnyPrincipalMan(this.cmpnyPrincipalMan);
			owRegisterDataDto.setCmpnyPrincipalPhone(this.cmpnyPrincipalPhone);
			owRegisterDataDto.setCmpnyRegisterName(this.cmpnyRegisterName);
			owRegisterDataDto.setCmpnyShopName(this.cmpnyShopName);
			owRegisterDataDto.setCmpnyBusinessScope(this.cmpnyBusinessScope);
			owRegisterDataDto.setOwCmpnyBusinessProperty(this.owCmpnyBusinessProperty);
			owRegisterDataDto.setOwCmpnyBusinessMode(this.owCmpnyBusinessMode);
			owRegisterDataDto.setOwCmpnyBusinessArea(this.owCmpnyBusinessArea);
			owRegisterDataDto.setOwCmpnyHasLicense(this.owCmpnyHasLicense);
			owRegisterDataDto.setOwCmpnyHasContract(this.owCmpnyHasContract);
			owRegisterDataDto.setRegisterDataNumber(this.registerDataNumber);
			owRegisterDataDto.setOwRegisterType(this.owRegisterType);
			owRegisterDataDto.setOwBuildingType(this.owBuildingType);
			owRegisterDataDto.setOwUseCode(this.owUseCode);
			owRegisterDataDto.setBaseCommiteeId(this.baseCommiteeId);
			owRegisterDataDto.setBaseRoadId(this.baseRoadId);
			owRegisterDataDto.setPosHouseNumber(this.posHouseNumber);
			owRegisterDataDto.setPosDesc(this.posDesc);
			owRegisterDataDto.setPosLng(this.posLng);
			owRegisterDataDto.setPosLat(this.posLat);
			owRegisterDataDto.setRemark1(this.remark1);
			owRegisterDataDto.setOwnerName(this.ownerName);
			owRegisterDataDto.setOwnerPhone(this.ownerPhone);
			owRegisterDataDto.setUserName(this.userName);
			owRegisterDataDto.setUserPhone(this.userPhone);
			owRegisterDataDto.setRemark2(this.remark2);

			//调用远程服务
			resultObj =  owRegisterDataService.editData(owRegisterDataDto);
			if(!resultObj.isSuccess()){
				this.result = "error:"+resultObj.getContent();
				JsonPaginationUtils.responseWriter(response, this.result);
				return "jsonResult";
			}
			this.jsonArrayResult.add(resultObj.getResultMap());

		} catch (Exception e) {
			e.printStackTrace();
			resultObj.fault("error:系统出错:"+e.getLocalizedMessage());
			this.jsonArrayResult.add(resultObj.getResultMap());
		}

		return "jsonArray";
	}

	/**
	* 添加数据
	* @return
	*/
	public String addData(){
		Result<OwRegisterDataDto> resultObj = new Result();
		try {
			HttpServletResponse response = ServletActionContext.getResponse();
			HttpServletRequest request = WebUtils.getRequest();
			HttpSession session = request.getSession();

			//插入参数
			OwRegisterDataDto owRegisterDataDto = new OwRegisterDataDto();
			String adminMan = WebUtils.getUsername();//加入管理员
			String userId = WebUtils.getUserId();
			owRegisterDataDto.setCreatemanId(userId);
			owRegisterDataDto.setCreateman(adminMan);
			owRegisterDataDto.setCompanyId(WebUtils.getCompanyId());
			//插入数据
			owRegisterDataDto.setOwUseType(this.owUseType);
			owRegisterDataDto.setName(this.name);
			owRegisterDataDto.setCmpnyLegalMan(this.cmpnyLegalMan);
			owRegisterDataDto.setCmpnyLegalPhone(this.cmpnyLegalPhone);
			owRegisterDataDto.setCmpnyPrincipalMan(this.cmpnyPrincipalMan);
			owRegisterDataDto.setCmpnyPrincipalPhone(this.cmpnyPrincipalPhone);
			owRegisterDataDto.setCmpnyRegisterName(this.cmpnyRegisterName);
			owRegisterDataDto.setCmpnyShopName(this.cmpnyShopName);
			owRegisterDataDto.setCmpnyBusinessScope(this.cmpnyBusinessScope);
			owRegisterDataDto.setOwCmpnyBusinessProperty(this.owCmpnyBusinessProperty);
			owRegisterDataDto.setOwCmpnyBusinessMode(this.owCmpnyBusinessMode);
			owRegisterDataDto.setOwCmpnyBusinessArea(this.owCmpnyBusinessArea);
			owRegisterDataDto.setOwCmpnyHasLicense(this.owCmpnyHasLicense);
			owRegisterDataDto.setOwCmpnyHasContract(this.owCmpnyHasContract);
			owRegisterDataDto.setRegisterDataNumber(this.registerDataNumber);
			owRegisterDataDto.setOwRegisterType(this.owRegisterType);
			owRegisterDataDto.setOwBuildingType(this.owBuildingType);
			owRegisterDataDto.setOwUseCode(this.owUseCode);
			owRegisterDataDto.setBaseCommiteeId(this.baseCommiteeId);
			owRegisterDataDto.setBaseRoadId(this.baseRoadId);
			owRegisterDataDto.setPosHouseNumber(this.posHouseNumber);
			owRegisterDataDto.setPosDesc(this.posDesc);
			owRegisterDataDto.setPosLng(this.posLng);
			owRegisterDataDto.setPosLat(this.posLat);
			owRegisterDataDto.setRemark1(this.remark1);
			owRegisterDataDto.setOwnerName(this.ownerName);
			owRegisterDataDto.setOwnerPhone(this.ownerPhone);
			owRegisterDataDto.setUserName(this.userName);
			owRegisterDataDto.setUserPhone(this.userPhone);
			owRegisterDataDto.setRemark2(this.remark2);

			//调用远程服务
			resultObj =  owRegisterDataService.addData(owRegisterDataDto);
			if(!resultObj.isSuccess()){
				this.result = "error:"+resultObj.getContent();
				JsonPaginationUtils.responseWriter(response, this.result);
				return "jsonResult";
			}
			this.jsonArrayResult.add(resultObj.getResultMap());

		} catch (Exception e) {
			e.printStackTrace();
			resultObj.fault("error:系统出错:"+e.getLocalizedMessage());
			this.jsonArrayResult.add(resultObj.getResultMap());
		}
		return "jsonArray";
	}


	//=====================================================
	// setter getter method
	//=====================================================


	public String getId(){
	return id;
	}
	public void setId(String id){
	this.id = id;
	}
	public String getOwUseType(){
	return owUseType;
	}
	public void setOwUseType(String owUseType){
	this.owUseType = owUseType;
	}
	public String getName(){
	return name;
	}
	public void setName(String name){
	this.name = name;
	}
	public String getCmpnyLegalMan(){
	return cmpnyLegalMan;
	}
	public void setCmpnyLegalMan(String cmpnyLegalMan){
	this.cmpnyLegalMan = cmpnyLegalMan;
	}
	public String getCmpnyLegalPhone(){
	return cmpnyLegalPhone;
	}
	public void setCmpnyLegalPhone(String cmpnyLegalPhone){
	this.cmpnyLegalPhone = cmpnyLegalPhone;
	}
	public String getCmpnyPrincipalMan(){
	return cmpnyPrincipalMan;
	}
	public void setCmpnyPrincipalMan(String cmpnyPrincipalMan){
	this.cmpnyPrincipalMan = cmpnyPrincipalMan;
	}
	public String getCmpnyPrincipalPhone(){
	return cmpnyPrincipalPhone;
	}
	public void setCmpnyPrincipalPhone(String cmpnyPrincipalPhone){
	this.cmpnyPrincipalPhone = cmpnyPrincipalPhone;
	}
	public String getCmpnyRegisterName(){
	return cmpnyRegisterName;
	}
	public void setCmpnyRegisterName(String cmpnyRegisterName){
	this.cmpnyRegisterName = cmpnyRegisterName;
	}
	public String getCmpnyShopName(){
	return cmpnyShopName;
	}
	public void setCmpnyShopName(String cmpnyShopName){
	this.cmpnyShopName = cmpnyShopName;
	}
	public String getCmpnyBusinessScope(){
	return cmpnyBusinessScope;
	}
	public void setCmpnyBusinessScope(String cmpnyBusinessScope){
	this.cmpnyBusinessScope = cmpnyBusinessScope;
	}
	public String getOwCmpnyBusinessProperty(){
	return owCmpnyBusinessProperty;
	}
	public void setOwCmpnyBusinessProperty(String owCmpnyBusinessProperty){
	this.owCmpnyBusinessProperty = owCmpnyBusinessProperty;
	}
	public String getOwCmpnyBusinessMode(){
	return owCmpnyBusinessMode;
	}
	public void setOwCmpnyBusinessMode(String owCmpnyBusinessMode){
	this.owCmpnyBusinessMode = owCmpnyBusinessMode;
	}
	public String getOwCmpnyBusinessArea(){
	return owCmpnyBusinessArea;
	}
	public void setOwCmpnyBusinessArea(String owCmpnyBusinessArea){
	this.owCmpnyBusinessArea = owCmpnyBusinessArea;
	}
	public String getOwCmpnyHasLicense(){
	return owCmpnyHasLicense;
	}
	public void setOwCmpnyHasLicense(String owCmpnyHasLicense){
	this.owCmpnyHasLicense = owCmpnyHasLicense;
	}
	public String getOwCmpnyHasContract(){
	return owCmpnyHasContract;
	}
	public void setOwCmpnyHasContract(String owCmpnyHasContract){
	this.owCmpnyHasContract = owCmpnyHasContract;
	}
	public String getRegisterDataNumber(){
	return registerDataNumber;
	}
	public void setRegisterDataNumber(String registerDataNumber){
	this.registerDataNumber = registerDataNumber;
	}
	public String getOwRegisterType(){
	return owRegisterType;
	}
	public void setOwRegisterType(String owRegisterType){
	this.owRegisterType = owRegisterType;
	}
	public String getOwBuildingType(){
	return owBuildingType;
	}
	public void setOwBuildingType(String owBuildingType){
	this.owBuildingType = owBuildingType;
	}
	public String getOwUseCode(){
	return owUseCode;
	}
	public void setOwUseCode(String owUseCode){
	this.owUseCode = owUseCode;
	}
	public String getBaseCommiteeId(){
	return baseCommiteeId;
	}
	public void setBaseCommiteeId(String baseCommiteeId){
	this.baseCommiteeId = baseCommiteeId;
	}
	public String getDeleteflag(){
	return deleteflag;
	}
	public void setDeleteflag(String deleteflag){
	this.deleteflag = deleteflag;
	}
	public String getBaseRoadId(){
	return baseRoadId;
	}
	public void setBaseRoadId(String baseRoadId){
	this.baseRoadId = baseRoadId;
	}
	public String getCreatedate(){
	return createdate;
	}
	public void setCreatedate(String createdate){
	this.createdate = createdate;
	}
    public String getCreatedate_Start(){
    	return createdate_Start;
    }
    public void setCreatedate_Start(String createdate_Start){
    	this.createdate_Start = createdate_Start;
    }
    public String getCreatedate_End(){
    	return createdate_End;
    }
    public void setCreatedate_End(String createdate_End){
    	this.createdate_End = createdate_End;
    }
	public String getPosHouseNumber(){
	return posHouseNumber;
	}
	public void setPosHouseNumber(String posHouseNumber){
	this.posHouseNumber = posHouseNumber;
	}
	public String getCreateman(){
	return createman;
	}
	public void setCreateman(String createman){
	this.createman = createman;
	}
	public String getPosDesc(){
	return posDesc;
	}
	public void setPosDesc(String posDesc){
	this.posDesc = posDesc;
	}
	public String getModifydate(){
	return modifydate;
	}
	public void setModifydate(String modifydate){
	this.modifydate = modifydate;
	}
    public String getModifydate_Start(){
    	return modifydate_Start;
    }
    public void setModifydate_Start(String modifydate_Start){
    	this.modifydate_Start = modifydate_Start;
    }
    public String getModifydate_End(){
    	return modifydate_End;
    }
    public void setModifydate_End(String modifydate_End){
    	this.modifydate_End = modifydate_End;
    }
	public String getPosLng(){
	return posLng;
	}
	public void setPosLng(String posLng){
	this.posLng = posLng;
	}
	public String getModifyman(){
	return modifyman;
	}
	public void setModifyman(String modifyman){
	this.modifyman = modifyman;
	}
	public String getPosLat(){
	return posLat;
	}
	public void setPosLat(String posLat){
	this.posLat = posLat;
	}
	public String getCreatemanId(){
	return createmanId;
	}
	public void setCreatemanId(String createmanId){
	this.createmanId = createmanId;
	}
	public String getRemark1(){
	return remark1;
	}
	public void setRemark1(String remark1){
	this.remark1 = remark1;
	}
	public String getModifymanId(){
	return modifymanId;
	}
	public void setModifymanId(String modifymanId){
	this.modifymanId = modifymanId;
	}
	public String getOwnerName(){
	return ownerName;
	}
	public void setOwnerName(String ownerName){
	this.ownerName = ownerName;
	}
	public String getCompanyId(){
	return companyId;
	}
	public void setCompanyId(String companyId){
	this.companyId = companyId;
	}
	public String getOwnerPhone(){
	return ownerPhone;
	}
	public void setOwnerPhone(String ownerPhone){
	this.ownerPhone = ownerPhone;
	}
	public String getUserName(){
	return userName;
	}
	public void setUserName(String userName){
	this.userName = userName;
	}
	public String getUserPhone(){
	return userPhone;
	}
	public void setUserPhone(String userPhone){
	this.userPhone = userPhone;
	}
	public String getRemark2(){
	return remark2;
	}
	public void setRemark2(String remark2){
	this.remark2 = remark2;
	}

	public String getSortColumn() {
		return sortColumn;
	}
	public void setSortColumn(String sortColumn) {
		this.sortColumn = sortColumn;
	}
	public String getSortOrder() {
		return sortOrder;
	}
	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public List<Map<String, Object>> getJsonArrayResult() {
		return jsonArrayResult;
	}
	public void setJsonArrayResult(List<Map<String, Object>> jsonArrayResult) {
		this.jsonArrayResult = jsonArrayResult;
	}

	public String getA2userId(){
		return a2userId;
	}
	public void setA2userId(String a2userId){
		this.a2userId = a2userId;
	}
}
